package cn.icare.cms.model.vo.rest;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 商品详情对象类
 */
public class ItemVO {
    private Long id;
    /**
     * 商品编号
     */
    private String code;

    /**
     * 商品名称
     */

    private String title;

    /**
     * 所属类目，叶子类目
     */

    private Long cid;

    /**
     * 所属类目层级路径
     */

    private String cpath;

    /**
     * 商品关键字
     */

    private String keywords;

    /**
     * 净含量
     */

    private String weight;

    /**
     * 净含量计量单位，如:克
     */

    private String unit;

    /**
     * 商品价格（单位元）精确到小数点后两位
     */

    private BigDecimal price;

    /**
     * 库存数量
     */

    private Integer num;

    /**
     * 商品主图片
     */

    private String image;

    /**
     * 商品状态，1-正常，2-下架，3-删除
     */

    private Byte status;

    /**
     * 商品详情
     */

    private String description;

    /**
     * 创建时间
     */

    private Date createtime;

    /**
     * 创建者
     */

    private String creator;

    /**
     * 最后修改时间
     */

    private Date updatetime;

    /**
     * 修改者
     */

    private String updator;

    /**
     * 保质期，如7天
     */

    private String exp;

    /**
     * 保存条件,如常温
     */
    private String storageconditions;

    /**
     * 产品图片列表
     */
    private List<ItemPicVo> itempics;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public String getCpath() {
        return cpath;
    }

    public void setCpath(String cpath) {
        this.cpath = cpath;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getUpdator() {
        return updator;
    }

    public void setUpdator(String updator) {
        this.updator = updator;
    }

    public String getExp() {
        return exp;
    }

    public void setExp(String exp) {
        this.exp = exp;
    }

    public String getStorageconditions() {
        return storageconditions;
    }

    public void setStorageconditions(String storageconditions) {
        this.storageconditions = storageconditions;
    }

    public List<ItemPicVo> getItempics() {
        return itempics;
    }

    public void setItempics(List<ItemPicVo> itempics) {
        this.itempics = itempics;
    }
}
